package com.yanqu.road.entity.log.curio;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_curio_upgrade", autoSave = true, dataUpload = true, eventName = "treasure_up", desc = "藏品升级", uploadCk = true)
public class LogCurioItemUpgrade extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "玩家id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(dataAttribute = "treasure_id", desc = "藏品id")
    private int itemId;

    @FieldTypeAnnotation(dataAttribute = "treasure_beforestar", desc = "旧等级")
    private int oldBadgeId;

    @FieldTypeAnnotation(dataAttribute = "treasure_afterstar", desc = "新等级")
    private int newBadgeId;

    @FieldTypeAnnotation(dataAttribute = "treasure_addscore", desc = "增加的分数")
    private long addScore;

    public LogCurioItemUpgrade(long userId, int itemId, int oldBadgeId, int newBadgeId, long addScore) {
        this.userId = userId;
        this.itemId = itemId;
        this.oldBadgeId = oldBadgeId;
        this.newBadgeId = newBadgeId;
        this.addScore = addScore;
    }

    public long getUserId() {
        return userId;
    }

}
